<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<ul>
    <li th:each="il1:${l1}">

        <input
                type="checkbox"
                name="RoleModuleVo"
                th:value="${il1}"
                th:checked="${l2.contains(il1)}"
                th:text="${il1}"
        />

    </li>
</ul>
</body>
</html>